<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>架构管理 - 一体化作战平台</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 引入Chart.js -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    
    <!-- Tailwind配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#0066cc',
                        secondary: '#0099cc',
                        success: '#009966',
                        warning: '#ff9900',
                        danger: '#cc3300',
                        neutral: {
                            100: '#f5f7fa',
                            200: '#e4e7ed',
                            300: '#c0c4cc',
                            400: '#909399',
                            500: '#606266',
                            600: '#303133',
                            700: '#1f2937',
                        }
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 2px 8px rgba(0, 0, 0, 0.08)',
                        'dropdown': '0 4px 16px rgba(0, 0, 0, 0.12)',
                    }
                },
            }
        }
    </script>
    
    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .scrollbar-hide {
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .scrollbar-hide::-webkit-scrollbar {
                display: none;
            }
            .text-shadow {
                text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            }
            .transition-all-300 {
                transition: all 300ms ease-in-out;
            }
        }
    </style>
</head>
<body class="bg-neutral-100 font-sans text-neutral-600 min-h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-white shadow-sm fixed top-0 left-0 right-0 z-50">
        <div class="flex items-center justify-between px-4 py-3">
            <!-- Logo和标题 -->
            <div class="flex items-center space-x-3">
                <div class="w-10 h-10 bg-primary rounded-md flex items-center justify-center text-white">
                    <i class="fa fa-bank text-xl"></i>
                </div>
                <h1 class="text-xl font-bold text-neutral-700 hidden md:block">一体化作战平台</h1>
                <h1 class="text-lg font-bold text-neutral-700 md:hidden">研发交付平台</h1>
            </div>
            
            <!-- 搜索框 -->
            <div class="hidden md:flex relative flex-1 max-w-md mx-4">
                <input type="text" placeholder="搜索架构组件..." 
                    class="w-full pl-10 pr-4 py-2 rounded-md border border-neutral-200 focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary">
                <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400"></i>
            </div>
            
            <!-- 右侧用户区域 -->
            <div class="flex items-center space-x-1 md:space-x-4">
                <!-- 通知按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all-300">
                    <i class="fa fa-bell-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-danger rounded-full"></span>
                </button>
                
                <!-- 消息按钮 -->
                <button class="relative p-2 rounded-full hover:bg-neutral-100 transition-all-300 hidden md:block">
                    <i class="fa fa-envelope-o text-lg text-neutral-600"></i>
                    <span class="absolute top-0 right-0 w-2 h-2 bg-primary rounded-full"></span>
                </button>
                
                <!-- 用户头像 -->
                <div class="flex items-center space-x-2 ml-2">
                    <div class="w-8 h-8 bg-neutral-200 rounded-full overflow-hidden">
                        <img src="https://picsum.photos/id/1005/200/200" alt="用户头像" class="w-full h-full object-cover">
                    </div>
                    <span class="hidden md:block text-sm font-medium text-neutral-700">张三</span>
                </div>
            </div>
        </div>
    </header>

    <!-- 主体内容 -->
    <div class="flex pt-16 flex-1">
        <!-- 左侧导航菜单 -->
        <aside class="w-16 md:w-64 bg-white shadow-sm fixed h-full left-0 top-16 overflow-y-auto scrollbar-hide transform md:transform-none transition-transform duration-300 z-40 -translate-x-full md:translate-x-0">
            <nav class="py-4">
                <ul>
                    <!-- 主导航项 -->
                    <li class="mb-1">
                        <a href="index.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-tachometer text-lg"></i>
                            <span class="hidden md:block">首页</span>
                        </a>
                    </li>
                    
                    <!-- 交付流程模块 -->
                    <li class="mb-1">
                        <a href="business_strategy.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-line-chart text-lg"></i>
                            <span class="hidden md:block">业务战略</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="architecture-management.html" class="flex items-center space-x-3 px-4 py-3 text-primary bg-primary/5 border-r-4 border-primary">
                            <i class="fa fa-sitemap text-lg"></i>
                            <span class="hidden md:block font-medium">架构管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="requirementsManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-list-alt text-lg"></i>
                            <span class="hidden md:block">需求管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="design-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                                <a href="design_management.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-paint-brush text-lg"></i>
                                    <span class="hidden md:block">设计管理</span>
                                </a>
                                <button id="design-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="design-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="interface_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-plug text-sm"></i>
                                        <span class="hidden md:block">接口管理</span>
                                    </a>
                                    <a href="model_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cubes text-sm"></i>
                                        <span class="hidden md:block">模型管理</span>
                                    </a>
                                    <a href="data_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-database text-sm"></i>
                                        <span class="hidden md:block">字典管理</span>
                                    </a>
                                    <a href="ui_management.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-desktop text-sm"></i>
                                        <span class="hidden md:block">差异分析</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="schedule_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-calendar text-lg"></i>
                            <span class="hidden md:block">排期管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="developmentMage.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-code text-lg"></i>
                            <span class="hidden md:block">开发管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <div class="test-menu-wrapper">
                            <div class="flex items-center justify-between px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                                <a href="testManagement.html" class="flex items-center space-x-3 flex-1" onclick="event.stopPropagation();">
                                    <i class="fa fa-bug text-lg"></i>
                                    <span class="hidden md:block">测试管理</span>
                                </a>
                                <button id="test-menu-toggle" class="hidden md:block p-1 hover:bg-neutral-200 rounded transition-all" aria-label="展开/收起子菜单" onclick="event.stopPropagation();">
                                    <i class="fa fa-chevron-right text-xs transform transition-transform duration-300"></i>
                                </button>
                            </div>
                            <!-- 下拉子菜单 -->
                            <div id="test-submenu" class="hidden overflow-hidden transition-all duration-300 ease-in-out">
                                <div class="bg-neutral-50 py-1">
                                    <a href="test_cases.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-file-text-o text-sm"></i>
                                        <span class="hidden md:block">测试案例</span>
                                    </a>
                                    <a href="test_plans.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-calendar-check-o text-sm"></i>
                                        <span class="hidden md:block">测试计划</span>
                                    </a>
                                    <a href="test_reports.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-bar-chart text-sm"></i>
                                        <span class="hidden md:block">测试报告</span>
                                    </a>
                                    <a href="test_global_settings.html" class="flex items-center space-x-3 px-4 py-2 pl-12 text-neutral-600 hover:bg-primary/5 hover:text-primary transition-all text-sm">
                                        <i class="fa fa-cogs text-sm"></i>
                                        <span class="hidden md:block">全局设置</span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mb-1">
                        <a href="production_workflow.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-rocket text-lg"></i>
                            <span class="hidden md:block">投产上线</span>
                        </a>
                    </li>
                    
                    <!-- 新增的三个子菜单项 -->
                    <li class="mb-1">
                        <a href="quality_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-check-circle text-lg"></i>
                            <span class="hidden md:block">质量管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="security_management.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-shield text-lg"></i>
                            <span class="hidden md:block">安全管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="efficiency_metrics.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-bar-chart text-lg"></i>
                            <span class="hidden md:block">效能度量</span>
                        </a>
                    </li>
                    
                    <!-- 分隔线 -->
                    <li class="my-2">
                        <div class="border-t border-neutral-200 mx-4"></div>
                    </li>
                    
                    <!-- 公共模块 -->
                    <li class="mb-1">
                        <a href="teamManagement.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-users text-lg"></i>
                            <span class="hidden md:block">团队管理</span>
                        </a>
                    </li>
                    
                    <li class="mb-1">
                        <a href="settings.html" class="flex items-center space-x-3 px-4 py-3 text-neutral-600 hover:bg-neutral-50 transition-all-300">
                            <i class="fa fa-cog text-lg"></i>
                            <span class="hidden md:block">设置</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </aside>

        <!-- 主内容区域 -->
        <main class="flex-1 ml-16 md:ml-64 p-4 md:p-6 bg-neutral-100 min-h-screen">
            <!-- 面包屑导航 -->
            <div class="mb-6">
                <nav class="flex" aria-label="面包屑">
                    <ol class="inline-flex items-center space-x-1 md:space-x-3">
                        <li class="inline-flex items-center">
                            <a href="index.html" class="inline-flex items-center text-sm font-medium text-neutral-500 hover:text-primary">
                                <i class="fa fa-home mr-2"></i>
                                首页
                            </a>
                        </li>
                        <li>
                            <div class="flex items-center">
                                <i class="fa fa-chevron-right text-neutral-400 text-xs mx-2"></i>
                                <span class="text-sm font-medium text-primary">架构管理</span>
                            </div>
                        </li>
                    </ol>
                </nav>
            </div>

            <!-- 页面标题和操作按钮 -->
            <div class="flex flex-col md:flex-row md:items-center justify-between mb-6">
                <div>
                    <h2 class="text-2xl font-bold text-neutral-700">架构管理</h2>
                    <p class="text-neutral-500 text-sm mt-1">管理银行的业务架构、数据架构、应用架构、技术架构和安全架构</p>
                </div>
                <div class="mt-4 md:mt-0 flex space-x-2">
                    <button onclick="openApplicationTypeModal()" class="bg-success hover:bg-success/90 text-white px-4 py-2 rounded-md flex items-center transition-all-300">
                        <i class="fa fa-plus mr-2"></i>
                        <span>新建申请</span>
                    </button>
                    <button class="bg-primary hover:bg-primary/90 text-white px-4 py-2 rounded-md flex items-center transition-all-300">
                        <i class="fa fa-upload mr-2"></i>
                        <span>导入</span>
                    </button>
                    <button class="bg-white hover:bg-neutral-50 text-neutral-700 border border-neutral-200 px-4 py-2 rounded-md flex items-center transition-all-300">
                        <i class="fa fa-download mr-2"></i>
                        <span>导出</span>
                    </button>
                </div>
            </div>

            <!-- 二级架构类型切换 -->
            <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                <div class="flex overflow-x-auto scrollbar-hide pb-2 space-x-2">
                    <button id="arch-business-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-primary text-white font-medium flex items-center transition-all-300">
                        <i class="fa fa-building-o mr-2"></i>
                        业务架构
                    </button>
                    <button id="arch-data-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300">
                        <i class="fa fa-database mr-2"></i>
                        数据架构
                    </button>
                    <button id="arch-app-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300">
                        <i class="fa fa-cubes mr-2"></i>
                        应用架构
                    </button>
                    <button id="arch-tech-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300">
                        <i class="fa fa-code-fork mr-2"></i>
                        技术架构
                    </button>
                    <button id="arch-security-btn" class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300">
                        <i class="fa fa-shield mr-2"></i>
                        安全架构
                    </button>
                </div>
            </div>

            <!-- 架构内容区域 -->
            <div class="mb-6">
                <!-- 业务架构内容 (默认显示) -->
                <div id="business-architecture-content" class="arch-content">
                    <!-- 业务架构横向导航 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex overflow-x-auto scrollbar-hide pb-2 space-x-2">
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-secondary text-white font-medium transition-all-300">
                                业务领域管理
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                业务组件管理
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                产品模型管理
                            </button>
                        </div>
                    </div>

                    <!-- 业务领域管理内容 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="text-lg font-semibold text-neutral-700">业务领域管理</h3>
                            <div class="flex space-x-2">
                                <button class="px-3 py-1 text-sm bg-secondary/10 text-secondary rounded-md hover:bg-secondary/20 transition-all-300">
                                    业务领域
                                </button>
                                <button class="px-3 py-1 text-sm bg-white text-neutral-700 border border-neutral-200 rounded-md hover:bg-neutral-50 transition-all-300">
                                    业务事件
                                </button>
                                <button class="px-3 py-1 text-sm bg-white text-neutral-700 border border-neutral-200 rounded-md hover:bg-neutral-50 transition-all-300">
                                    活动
                                </button>
                            </div>
                        </div>

                        <!-- 业务领域视图 -->
                        <div class="bg-neutral-50 rounded-lg p-4">
                            <div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-3 gap-4">
                                <!-- 业务领域卡片 -->
                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-primary cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">IT战略管理</h4>
                                        <span class="text-xs px-2 py-1 bg-primary/10 text-primary rounded-full">核心</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责银行整体IT战略规划与落地</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 张三</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">12个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-secondary cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">企业架构管理</h4>
                                        <span class="text-xs px-2 py-1 bg-secondary/10 text-secondary rounded-full">核心</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责企业级架构设计与治理</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 李四</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">8个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-success cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">需求管理</h4>
                                        <span class="text-xs px-2 py-1 bg-success/10 text-success rounded-full">核心</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责业务需求的收集、分析与管理</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 王五</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">15个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-warning cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">设计管理</h4>
                                        <span class="text-xs px-2 py-1 bg-warning/10 text-warning rounded-full">标准</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责系统设计与方案评审</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 赵六</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">10个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-danger cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">开发管理</h4>
                                        <span class="text-xs px-2 py-1 bg-danger/10 text-danger rounded-full">标准</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责应用开发与代码管理</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 孙七</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">7个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-primary cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">测试管理</h4>
                                        <span class="text-xs px-2 py-1 bg-primary/10 text-primary rounded-full">标准</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责系统测试与质量保证</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 周八</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">9个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-secondary cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">投产管理</h4>
                                        <span class="text-xs px-2 py-1 bg-secondary/10 text-secondary rounded-full">标准</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责系统上线与运维支持</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 吴九</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">6个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-success cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">管理项目项目群</h4>
                                        <span class="text-xs px-2 py-1 bg-success/10 text-success rounded-full">扩展</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责项目群管理与协调</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 郑十</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">5个事件</span>
                                        </div>
                                    </div>
                                </div>

                                <div class="bg-white rounded-lg shadow-sm p-4 border-l-4 border-warning cursor-pointer hover:shadow-md transition-all-300">
                                    <div class="flex items-center justify-between mb-2">
                                        <h4 class="font-medium text-neutral-700">管理IT产品</h4>
                                        <span class="text-xs px-2 py-1 bg-warning/10 text-warning rounded-full">扩展</span>
                                    </div>
                                    <p class="text-sm text-neutral-500 mb-3">负责IT产品线规划与管理</p>
                                    <div class="flex items-center justify-between">
                                        <span class="text-xs text-neutral-400">架构师: 钱十一</span>
                                        <div class="flex space-x-1">
                                            <span class="text-xs px-2 py-0.5 bg-success/10 text-success rounded-full">4个事件</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 数据架构内容 (默认隐藏) -->
                <div id="data-architecture-content" class="arch-content hidden">
                    <!-- 数据架构横向导航 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex overflow-x-auto scrollbar-hide pb-2 space-x-2">
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-secondary text-white font-medium transition-all-300">
                                业务对象
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                业务实体
                            </button>
                        </div>
                    </div>

                    <!-- 业务对象内容 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="text-lg font-semibold text-neutral-700">业务对象管理</h3>
                            <button class="text-primary text-sm hover:underline">查看详情</button>
                        </div>

                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-neutral-200">
                                <thead class="bg-neutral-50">
                                    <tr>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                            对象名称
                                        </th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                            描述
                                        </th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                            所属业务域
                                        </th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                            数据分类
                                        </th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                            负责人
                                        </th>
                                        <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-neutral-500 uppercase tracking-wider">
                                            操作
                                        </th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-neutral-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-neutral-700">
                                            客户
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            银行服务对象，包含个人和企业客户
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs font-medium rounded-full bg-primary/10 text-primary">
                                                零售银行
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs font-medium rounded-full bg-neutral-100 text-neutral-700">
                                                主数据
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            张三
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            <div class="flex space-x-2">
                                                <button class="text-primary hover:text-primary/80">
                                                    <i class="fa fa-edit"></i>
                                                </button>
                                                <button class="text-neutral-500 hover:text-neutral-700">
                                                    <i class="fa fa-eye"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-neutral-700">
                                            账户
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            客户在银行开设的各类账户
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs font-medium rounded-full bg-secondary/10 text-secondary">
                                                核心银行
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs font-medium rounded-full bg-neutral-100 text-neutral-700">
                                                交易数据
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            李四
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            <div class="flex space-x-2">
                                                <button class="text-primary hover:text-primary/80">
                                                    <i class="fa fa-edit"></i>
                                                </button>
                                                <button class="text-neutral-500 hover:text-neutral-700">
                                                    <i class="fa fa-eye"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-neutral-700">
                                            交易
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            客户通过银行系统进行的各类交易
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs font-medium rounded-full bg-success/10 text-success">
                                                支付结算
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs font-medium rounded-full bg-neutral-100 text-neutral-700">
                                                交易数据
                                            </span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            王五
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-neutral-600">
                                            <div class="flex space-x-2">
                                                <button class="text-primary hover:text-primary/80">
                                                    <i class="fa fa-edit"></i>
                                                </button>
                                                <button class="text-neutral-500 hover:text-neutral-700">
                                                    <i class="fa fa-eye"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <!-- 应用架构内容 (默认隐藏) -->
                <div id="application-architecture-content" class="arch-content hidden">
                    <!-- 应用架构横向导航 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex overflow-x-auto scrollbar-hide pb-2 space-x-2">
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-secondary text-white font-medium transition-all-300">
                                应用架构蓝图
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                系统清单
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                移动应用清单
                            </button>
                        </div>
                    </div>

                    <!-- 应用架构蓝图内容 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="text-lg font-semibold text-neutral-700">应用架构蓝图</h3>
                            <div class="flex space-x-2">
                                <button class="text-sm text-neutral-600 hover:text-primary">
                                    <i class="fa fa-expand mr-1"></i> 全屏
                                </button>
                                <button class="text-sm text-neutral-600 hover:text-primary">
                                    <i class="fa fa-download mr-1"></i> 导出
                                </button>
                            </div>
                        </div>

                        <div class="bg-neutral-50 rounded-lg p-4 h-[500px] flex items-center justify-center">
                            <div class="text-center">
                                <i class="fa fa-sitemap text-5xl text-neutral-300 mb-4"></i>
                                <p class="text-neutral-500">应用架构蓝图示意图</p>
                                <p class="text-sm text-neutral-400 mt-2">包含核心银行系统、渠道系统、风险管理系统等多层架构</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 技术架构内容 (默认隐藏) -->
                <div id="technology-architecture-content" class="arch-content hidden">
                    <!-- 技术架构横向导航 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex overflow-x-auto scrollbar-hide pb-2 space-x-2">
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-secondary text-white font-medium transition-all-300">
                                技术架构蓝图
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                技术组件基线
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                性能容量基线
                            </button>
                            <button class="whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium hover:bg-neutral-50 transition-all-300">
                                高可用基线
                            </button>
                        </div>
                    </div>

                    <!-- 技术架构蓝图内容 -->
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="text-lg font-semibold text-neutral-700">技术架构蓝图</h3>
                            <div class="flex space-x-2">
                                <button class="text-sm text-neutral-600 hover:text-primary">
                                    <i class="fa fa-expand mr-1"></i> 全屏
                                </button>
                                <button class="text-sm text-neutral-600 hover:text-primary">
                                    <i class="fa fa-download mr-1"></i> 导出
                                </button>
                            </div>
                        </div>

                        <div class="bg-neutral-50 rounded-lg p-4 h-[500px] flex items-center justify-center">
                            <div class="text-center">
                                <i class="fa fa-code-fork text-5xl text-neutral-300 mb-4"></i>
                                <p class="text-neutral-500">技术架构蓝图示意图</p>
                                <p class="text-sm text-neutral-400 mt-2">包含基础设施层、平台层、应用层等多层技术架构</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 安全架构内容 (默认隐藏) -->
                <div id="security-architecture-content" class="arch-content hidden">
                    <div class="bg-white rounded-lg shadow-card p-4 mb-6">
                        <div class="flex justify-between items-center mb-4">
                            <h3 class="text-lg font-semibold text-neutral-700">安全架构概述</h3>
                            <button class="text-primary text-sm hover:underline">查看详情</button>
                        </div>

                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div>
                                <h4 class="text-sm font-medium text-neutral-700 mb-3">安全域划分</h4>
                                <ul class="space-y-2">
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">生产域</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">测试域</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">开发域</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">管理域</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">DMZ域</span>
                                    </li>
                                </ul>
                            </div>
                            <div>
                                <h4 class="text-sm font-medium text-neutral-700 mb-3">安全能力</h4>
                                <ul class="space-y-2">
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">身份认证与访问控制</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">数据加密与脱敏</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">安全审计与监控</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">威胁检测与响应</span>
                                    </li>
                                    <li class="flex items-center">
                                        <i class="fa fa-check-circle text-success mr-2"></i>
                                        <span class="text-sm text-neutral-600">安全漏洞管理</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 选择申请类型弹窗 -->
    <div id="application-type-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden">
        <div class="bg-white rounded-lg shadow-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto m-4">
            <!-- 弹窗头部 -->
            <div class="bg-primary text-white px-6 py-4 flex items-center justify-between">
                <h2 class="text-xl font-bold flex items-center">
                    <i class="fa fa-list-alt mr-2"></i>选择申请类型
                </h2>
                <button onclick="closeApplicationTypeModal()" class="text-white hover:text-gray-200 focus:outline-none">
                    <i class="fa fa-times text-xl"></i>
                </button>
            </div>
            
            <!-- 弹窗内容 -->
            <div class="p-6">
                <p class="text-sm text-neutral-600 mb-6">请选择您要申请的类型，系统将引导您完成相应的申请流程。</p>
                
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <!-- 新建系统申请 -->
                    <div class="application-type-card border-2 border-neutral-200 rounded-lg p-4 cursor-pointer hover:border-primary hover:bg-primary/5 transition-all" onclick="selectApplicationType('new-system')">
                        <div class="flex items-start space-x-3">
                            <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center text-primary flex-shrink-0">
                                <i class="fa fa-desktop text-xl"></i>
                            </div>
                            <div class="flex-1">
                                <h3 class="text-lg font-semibold text-neutral-700 mb-1">新建系统申请</h3>
                                <p class="text-sm text-neutral-500">申请新建一个业务系统或应用</p>
                            </div>
                            <i class="fa fa-chevron-right text-neutral-400"></i>
                        </div>
                    </div>
                    
                    <!-- 新建外构软件 -->
                    <div class="application-type-card border-2 border-neutral-200 rounded-lg p-4 cursor-pointer hover:border-secondary hover:bg-secondary/5 transition-all" onclick="selectApplicationType('external-software')">
                        <div class="flex items-start space-x-3">
                            <div class="w-12 h-12 bg-secondary/10 rounded-lg flex items-center justify-center text-secondary flex-shrink-0">
                                <i class="fa fa-cube text-xl"></i>
                            </div>
                            <div class="flex-1">
                                <h3 class="text-lg font-semibold text-neutral-700 mb-1">新建外构软件</h3>
                                <p class="text-sm text-neutral-500">申请引入第三方外部购买软件</p>
                            </div>
                            <i class="fa fa-chevron-right text-neutral-400"></i>
                        </div>
                    </div>
                    
                    <!-- 引入SDK申请 -->
                    <div class="application-type-card border-2 border-neutral-200 rounded-lg p-4 cursor-pointer hover:border-success hover:bg-success/5 transition-all" onclick="selectApplicationType('sdk-import')">
                        <div class="flex items-start space-x-3">
                            <div class="w-12 h-12 bg-success/10 rounded-lg flex items-center justify-center text-success flex-shrink-0">
                                <i class="fa fa-code text-xl"></i>
                            </div>
                            <div class="flex-1">
                                <h3 class="text-lg font-semibold text-neutral-700 mb-1">引入SDK申请</h3>
                                <p class="text-sm text-neutral-500">申请引入第三方SDK或开发工具包</p>
                            </div>
                            <i class="fa fa-chevron-right text-neutral-400"></i>
                        </div>
                    </div>
                    
                    <!-- 新建开源软件 -->
                    <div class="application-type-card border-2 border-neutral-200 rounded-lg p-4 cursor-pointer hover:border-warning hover:bg-warning/5 transition-all" onclick="selectApplicationType('open-source')">
                        <div class="flex items-start space-x-3">
                            <div class="w-12 h-12 bg-warning/10 rounded-lg flex items-center justify-center text-warning flex-shrink-0">
                                <i class="fa fa-github text-xl"></i>
                            </div>
                            <div class="flex-1">
                                <h3 class="text-lg font-semibold text-neutral-700 mb-1">新建开源软件</h3>
                                <p class="text-sm text-neutral-500">申请引入开源软件或组件</p>
                            </div>
                            <i class="fa fa-chevron-right text-neutral-400"></i>
                        </div>
                    </div>
                    
                    <!-- 新建服务应用 -->
                    <div class="application-type-card border-2 border-neutral-200 rounded-lg p-4 cursor-pointer hover:border-danger hover:bg-danger/5 transition-all" onclick="selectApplicationType('service-application')">
                        <div class="flex items-start space-x-3">
                            <div class="w-12 h-12 bg-danger/10 rounded-lg flex items-center justify-center text-danger flex-shrink-0">
                                <i class="fa fa-cloud text-xl"></i>
                            </div>
                            <div class="flex-1">
                                <h3 class="text-lg font-semibold text-neutral-700 mb-1">新建服务应用</h3>
                                <p class="text-sm text-neutral-500">申请创建微服务或云服务应用</p>
                            </div>
                            <i class="fa fa-chevron-right text-neutral-400"></i>
                        </div>
                    </div>
                </div>
                
                <!-- 底部按钮 -->
                <div class="flex justify-end space-x-3 pt-6 mt-6 border-t border-neutral-200">
                    <button type="button" onclick="closeApplicationTypeModal()" class="px-6 py-2 border border-neutral-300 rounded-lg text-sm hover:bg-neutral-50 transition-all">
                        取消
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- JavaScript -->
    <script>
        // 设计管理菜单展开/收起功能
        document.addEventListener('DOMContentLoaded', function() {
            const designMenuToggle = document.getElementById('design-menu-toggle');
            const designSubmenu = document.getElementById('design-submenu');
            const designMenuWrapper = document.querySelector('.design-menu-wrapper');
            
            if (designMenuToggle && designSubmenu) {
                designMenuToggle.addEventListener('click', function(e) {
                    e.stopPropagation();
                    this.querySelector('i').classList.toggle('rotate-90');
                    if (designSubmenu.classList.contains('hidden')) {
                        designSubmenu.classList.remove('hidden');
                        setTimeout(() => {
                            designSubmenu.classList.remove('opacity-0');
                        }, 10);
                    } else {
                        designSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            designSubmenu.classList.add('hidden');
                        }, 300);
                    }
                });
                
                // 点击菜单项外部区域收起菜单
                document.addEventListener('click', function(e) {
                    if (designMenuWrapper && !designMenuWrapper.contains(e.target)) {
                        designSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            designSubmenu.classList.add('hidden');
                        }, 300);
                        if (designMenuToggle.querySelector('i')) {
                            designMenuToggle.querySelector('i').classList.remove('rotate-90');
                        }
                    }
                });
            }
            
            // 测试管理菜单展开/收起功能
            const testMenuToggle = document.getElementById('test-menu-toggle');
            const testSubmenu = document.getElementById('test-submenu');
            const testMenuWrapper = document.querySelector('.test-menu-wrapper');
            
            if (testMenuToggle && testSubmenu) {
                testMenuToggle.addEventListener('click', function(e) {
                    e.stopPropagation();
                    this.querySelector('i').classList.toggle('rotate-90');
                    if (testSubmenu.classList.contains('hidden')) {
                        testSubmenu.classList.remove('hidden');
                        setTimeout(() => {
                            testSubmenu.classList.remove('opacity-0');
                        }, 10);
                    } else {
                        testSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            testSubmenu.classList.add('hidden');
                        }, 300);
                    }
                });
                
                // 点击菜单项外部区域收起菜单
                document.addEventListener('click', function(e) {
                    if (testMenuWrapper && !testMenuWrapper.contains(e.target)) {
                        testSubmenu.classList.add('opacity-0');
                        setTimeout(() => {
                            testSubmenu.classList.add('hidden');
                        }, 300);
                        if (testMenuToggle.querySelector('i')) {
                            testMenuToggle.querySelector('i').classList.remove('rotate-90');
                        }
                    }
                });
            }
        });
    </script>
</body>
</html>
        document.addEventListener('DOMContentLoaded', function() {
            // 二级架构类型切换功能
            const archButtons = {
                'arch-business-btn': 'business-architecture-content',
                'arch-data-btn': 'data-architecture-content',
                'arch-app-btn': 'application-architecture-content',
                'arch-tech-btn': 'technology-architecture-content',
                'arch-security-btn': 'security-architecture-content'
            };

            // 绑定架构类型切换事件
            for (const [buttonId, contentId] of Object.entries(archButtons)) {
                const button = document.getElementById(buttonId);
                button.addEventListener('click', function() {
                    // 切换按钮样式
                    for (const btn of Object.keys(archButtons)) {
                        document.getElementById(btn).className = 'whitespace-nowrap px-4 py-2 rounded-md bg-white text-neutral-700 border border-neutral-200 font-medium flex items-center hover:bg-neutral-50 transition-all-300';
                    }
                    this.className = 'whitespace-nowrap px-4 py-2 rounded-md bg-primary text-white font-medium flex items-center transition-all-300';

                    // 切换内容显示
                    for (const content of Object.values(archButtons)) {
                        document.getElementById(content).classList.add('hidden');
                    }
                    document.getElementById(contentId).classList.remove('hidden');
                });
            }

            // 移动端菜单切换
            const menuToggle = document.createElement('button');
            menuToggle.className = 'fixed bottom-4 right-4 bg-primary text-white w-12 h-12 rounded-full shadow-lg flex items-center justify-center md:hidden z-50';
            menuToggle.innerHTML = '<i class="fa fa-bars text-xl"></i>';
            document.body.appendChild(menuToggle);

            menuToggle.addEventListener('click', function() {
                const aside = document.querySelector('aside');
                aside.classList.toggle('-translate-x-full');
                if (aside.classList.contains('-translate-x-full')) {
                    menuToggle.innerHTML = '<i class="fa fa-bars text-xl"></i>';
                } else {
                    menuToggle.innerHTML = '<i class="fa fa-times text-xl"></i>';
                }
            });

            // 平滑滚动
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function(e) {
                    e.preventDefault();
                    const targetId = this.getAttribute('href');
                    const targetElement = document.querySelector(targetId);
                    if (targetElement) {
                        window.scrollTo({
                            top: targetElement.offsetTop - 80,
                            behavior: 'smooth'
                        });
                    }
                });
            });
        });
        
        // 申请类型弹窗相关功能
        
        // 打开申请类型弹窗
        function openApplicationTypeModal() {
            document.getElementById('application-type-modal').classList.remove('hidden');
            document.body.style.overflow = 'hidden';
        }
        
        // 关闭申请类型弹窗
        function closeApplicationTypeModal() {
            document.getElementById('application-type-modal').classList.add('hidden');
            document.body.style.overflow = 'auto';
        }
        
        // 选择申请类型
        function selectApplicationType(type) {
            console.log('选择的申请类型:', type);
            
            // 根据不同类型跳转到相应的申请表单或页面
            switch(type) {
                case 'new-system':
                    alert('跳转到新建系统申请表单');
                    // window.location.href = 'new-system-application.html';
                    break;
                case 'external-software':
                    alert('跳转到新建外构软件申请表单');
                    // window.location.href = 'external-software-application.html';
                    break;
                case 'sdk-import':
                    alert('跳转到引入SDK申请表单');
                    // window.location.href = 'sdk-import-application.html';
                    break;
                case 'open-source':
                    alert('跳转到新建开源软件申请表单');
                    // window.location.href = 'open-source-application.html';
                    break;
                case 'service-application':
                    alert('跳转到新建服务应用申请表单');
                    // window.location.href = 'service-application.html';
                    break;
                default:
                    alert('未知的申请类型');
            }
            
            // 关闭弹窗
            closeApplicationTypeModal();
        }
        
        // ESC键关闭弹窗
        document.addEventListener('keydown', function(e) {
            if (e.key === 'Escape') {
                const modal = document.getElementById('application-type-modal');
                if (modal && !modal.classList.contains('hidden')) {
                    closeApplicationTypeModal();
                }
            }
        });
    </script>
</body>
</html>